    %     -----------------------------------------------------------------
    %
    %                              Ex6_14.m
    %
    %  this file demonstrates example 6-14.
    %
    %                          companion code for
    %             fundamentals of astrodynamics and applications
    %                                 2013
    %                            by david vallado
    %
    %     (h)               email davallado@gmail.com
    %     (w) 719-573-2600, email dvallado@agi.com
    %
    %     *****************************************************************
    %
    %  current :
    %            16 feb 19  david vallado
    %                         update for new constants
    %  changes :
    %            13 feb 07  david vallado
    %                         original baseline
    %
    %     *****************************************************************

    fprintf(1,'-------------------- problem ex 6-14 \n');
    ro = [0.0 0.0 0.0];
    vo = [-0.1 -0.04 -0.02];  % m/s

    ralt = 590.0; % km
    dtsec = 0.0;

    [rint, vint] = hillsr( ro,vo, ralt,dtsec );

    fprintf(1,'initial interceptor position \n');
    fprintf(1,' r  %11.7f  %11.7f  %11.7f m \n',rint);
    fprintf(1,' v  %11.7f  %11.7f  %11.7f m/s \n\n',vint);


    dtsec = 300.0;
    [rint, vint] = hillsr( ro,vo, ralt,dtsec );

    fprintf(1,' r  %11.7f  %11.7f  %11.7f \n',rint);
    fprintf(1,' v  %11.7f  %11.7f  %11.7f \n\n',vint);

    [rint, vint] = hillsr( ro*0.001,vo*0.001, ralt,dtsec );

    fprintf(1,' r  %11.7f  %11.7f  %11.7f km \n',rint);
    fprintf(1,' v  %11.7f  %11.7f  %11.7f km/s \n\n',vint);

    dtsec = 1200.0;
    [rint, vint] = hillsr( ro,vo, ralt,dtsec );

    fprintf(1,' r  %11.7f  %11.7f  %11.7f \n',rint);
    fprintf(1,' v  %11.7f  %11.7f  %11.7f \n\n',vint);


    dtsec = 600.0;
    [rint, vint] = hillsr( ro,vo, ralt,dtsec );
    fprintf(1,' r  %11.7f  %11.7f  %11.7f \n',rint);
    fprintf(1,' v  %11.7f  %11.7f  %11.7f \n\n',vint);











